LOCAL_PATH	:=	$(call my-dir)

#Framework
MY_FW_CODE_PATH	:=	$(LOCAL_PATH)/../../Sources/Source
MY_FW_NAME		:=	Framework

#=======================
#Build Utilities Library
#=======================
include $(CLEAR_VARS)

LOCAL_MODULE := $(MY_FW_NAME)
LOCAL_CFLAGS    := 	-mandroid \
                  	-ffunction-sections \
                    -funwind-tables \
                    -fstack-protector \
                    -fpic \
                    -Wno-psabi \
                    -Wno-write-strings \
                    -fsigned-char \
                    -fomit-frame-pointer \
                    -fno-strict-aliasing \
                    -finline-limit=300 \
                    -pipe \
                    -g \
                    -w -O3 \
                    -fno-rtti \
                    -fexceptions
LOCAL_CPPFLAGS 	+= 	-std=c++11					
LOCAL_SRC_FILES := 	$(MY_FW_CODE_PATH)/fwMath.cpp \
					$(MY_FW_CODE_PATH)/fwString.cpp \
					$(MY_FW_CODE_PATH)/Device/fwDevice.cpp \
					$(MY_FW_CODE_PATH)/Device/fwPlatformContext.cpp \
					$(MY_FW_CODE_PATH)/Device/fwAndroidContext.cpp \
					$(MY_FW_CODE_PATH)/Game/fwGameContext.cpp \
					$(MY_FW_CODE_PATH)/Game/fwGlobal.cpp \
					$(MY_FW_CODE_PATH)/Game/fwState.cpp \
					$(MY_FW_CODE_PATH)/Game/fwStateManager.cpp \
					$(MY_FW_CODE_PATH)/Graphics/fwShader.cpp \
					$(MY_FW_CODE_PATH)/Graphics/fwTGA.cpp
LOCAL_LDLIBS    := 	-llog -lGLESv2
include $(BUILD_SHARED_LIBRARY)